package com.skyworthclub.competition.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.skyworthclub.competition.beans.Comment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author li
 * @since 2018-10-15
 */
@Repository
public interface CommentMapper extends BaseMapper<Comment> {

    /** 分页查询评论
     * @param page  分页对象
     * @param matchId   比赛信息id
     * @return  评论列表
     */
    List<Comment> selectCommentPage(Page<Comment> page, @Param("matchId") Integer matchId);
}
